public class ThreadTest extends Thread{

    @Override
    public void run() {
        System.out.println("In run");
        yield();
        System.out.println("leaving run");
    }

    public static void main(String[] args) {
        new ThreadTest().start();
    }
}
